<?php

if (!function_exists('build_select')) {

    /**
     * 判断时间段
     * @param string $start_time 开始时间
     * @param string $end_time   结束时间
     * @return boolean
     */
    function get_curr_time_section($start_time, $end_time)
    {
        $checkDayStr = date('Y-m-d ', time());
        $timeBegin1 = strtotime($checkDayStr . $start_time);
        $timeEnd1 = strtotime($checkDayStr . $end_time);
        $curr_time = time();
        if ($curr_time >= $timeBegin1 && $curr_time <= $timeEnd1) {
            return true;
        }
        return false;
    }
}



